using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;using Maxleaf.EDI.Domain.K3;

namespace Maxleaf.EDI.DataAccess.K3
{
    public class t_BASE_FlowChartsMap : EntityTypeConfiguration<t_BASE_FlowCharts>
    {
        public t_BASE_FlowChartsMap()
        {
            // Primary Key
            this.HasKey(t => t.FFlowChartID);

            // Properties
            this.Property(t => t.FFlowChartID)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.FFlowChartName)
                .IsRequired()
                .HasMaxLength(255);

            this.Property(t => t.FFlowChartName_Cht)
                .IsRequired()
                .HasMaxLength(255);

            this.Property(t => t.FFlowChartName_En)
                .IsRequired()
                .HasMaxLength(255);

            // Table & Column Mappings
            this.ToTable("t_BASE_FlowCharts");
            this.Property(t => t.FFlowChartID).HasColumnName("FFlowChartID");
            this.Property(t => t.FUserID).HasColumnName("FUserID");
            this.Property(t => t.FFlowChartName).HasColumnName("FFlowChartName");
            this.Property(t => t.FFlowChartType).HasColumnName("FFlowChartType");
            this.Property(t => t.FFlowChartContent).HasColumnName("FFlowChartContent");
            this.Property(t => t.FFlowChartName_Cht).HasColumnName("FFlowChartName_Cht");
            this.Property(t => t.FFlowChartName_En).HasColumnName("FFlowChartName_En");
        }
    }
}
